(function(angular) {
	'use strict';
	angular.module('fs.waf').factory('fundingSrcService', fundingSrcService);
	fundingSrcService.$inject = [ '$q', 'loggerFactory', 'commonService', 'ajaxServiceFactory' ];
	function fundingSrcService($q, loggerFactory, commonService, ajaxServiceFactory) {
		var log = loggerFactory.getLogger("fundingSrcService");
		var ajaxService = ajaxServiceFactory.buildAjaxService({
			getDataStatus : {
				url : 'do/cda/dataList/dataStatus',
				method : 'get'
			}
		});
		function initOptionForSearch(){
			var defer = $q.defer();
			ajaxService.getDataStatus().then(function(response) {
				defer.resolve(response ? response.data : {});
			}, angular.noop);
			return defer.promise;
		};
		
		return {
			initOptionForSearch : initOptionForSearch
		};
	}
})(angular);